package com.cbh.amadeus.client.annotation;

import com.cbh.amadeus.client.config.AmadeusMessageRegisterImportBeanDefinitionRegistrar;
import com.cbh.amadeus.client.config.SubscriberConfig;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Import;

import java.lang.annotation.*;

/**
 * 消息订阅功能启动器
 *
 * @author ChenBiHui
 * @date 2025/4/27
 */
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Import({AmadeusMessageRegisterImportBeanDefinitionRegistrar.class})
@EnableConfigurationProperties({SubscriberConfig.class})
public @interface EnableAmadeusMessageSubscriber {

    /**
     * 消费者 实现类扫描路径
     *
     * @return 路径数组
     */
    String[] scan() default {};
}
